cmake_minimum_required(VERSION 3.0.0)
project(cal_normal VERSION 0.1.0)

# 设置PCL点云库依赖
find_package(PCL)
include_directories(${PCL_INCLUDE_DIRS})
list(REMOVE_ITEM PCL_LIBRARIES "vtkproj4")#不加这个会报错
link_directories(${PCL_LIBRARY_DIRS})
link_libraries(${PCL_LIBRARIES})
add_definitions(${PCL_DEFINITIONS})
# 添加Utils库
find_package(Utils REQUIRED)
include_directories(${Utils_INCLUDE_DIRS})
link_libraries(${Utils_LIBRARIES})

add_executable(cal_normal main.cpp)
install(TARGETS cal_normal RUNTIME DESTINATION bin)